set root=%~dp0

call "%root%\build_db.bat"
call "%root%\build_src.bat"
if ERRORLEVEL 1 goto exit

pushd "%root%"
"%root%\lib\nunit\nunit-console.exe" "%root%\src\Debug\Librarian.UnitTest.dll" 
if ERRORLEVEL 1 pause
del "%root%\TestResult.xml"
popd

:exit